From 5213aca7983a4b4364912b5f714174d3f1555c04 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 4 Apr 2005 17:49:17 +0000 Subject: [PATCH] bitkeeper revision 1.1236.1.211 (42517e1deriuSgF4H6HZQT3-ochrAA) Remove arch_alloc_domain_struct/arch_free_domain_struct. Signed-off-by: Keir Fraser --- xen/arch/ia64/domain.c | 10 ---------- xen/arch/x86/domain.c | 10 ---------- xen/common/schedule.c | 6 +++--- xen/include/xen/domain.h | 4 ---- 4 files changed, 3 insertions(+), 27 deletions(-) diff --git a/xen/arch/ia64/domain.c b/xen/arch/ia64/domain.c index a8f40b569e..df5d17c666 100644 --- a/xen/arch/ia64/domain.c +++ b/xen/arch/ia64/domain.c @@ -139,16 +139,6 @@ void startup_cpu_idle_loop(void) continue_cpu_idle_loop(); } -struct domain *arch_alloc_domain_struct(void) -{ - return xmalloc(struct domain); -} - -void arch_free_domain_struct(struct domain *d) -{ - xfree(d); -} - struct exec_domain *arch_alloc_exec_domain_struct(void) { /* Per-vp stack is used here. So we need keep exec_domain diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index a62f9ab131..8fe3d4b0e7 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -192,16 +192,6 @@ void dump_pageframe_info(struct domain *d) page->u.inuse.type_info); } -struct domain *arch_alloc_domain_struct(void) -{ - return xmalloc(struct domain); -} - -void arch_free_domain_struct(struct domain *d) -{ - xfree(d); -} - struct exec_domain *arch_alloc_exec_domain_struct(void) { return xmalloc(struct exec_domain); diff --git a/xen/common/schedule.c b/xen/common/schedule.c index ac4da68a79..2d6c6bc0ab 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -94,7 +94,7 @@ void free_domain_struct(struct domain *d) if ( d->exec_domain[i] ) arch_free_exec_domain_struct(d->exec_domain[i]); - arch_free_domain_struct(d); + xfree(d); } struct exec_domain *alloc_exec_domain_struct(struct domain *d, @@ -147,7 +147,7 @@ struct domain *alloc_domain_struct(void) { struct domain *d; - if ( (d = arch_alloc_domain_struct()) == NULL ) + if ( (d = xmalloc(struct domain)) == NULL ) return NULL; memset(d, 0, sizeof(*d)); @@ -158,7 +158,7 @@ struct domain *alloc_domain_struct(void) return d; out: - arch_free_domain_struct(d); + xfree(d); return NULL; } diff --git a/xen/include/xen/domain.h b/xen/include/xen/domain.h index a16820bc35..b3799f10a3 100644 --- a/xen/include/xen/domain.h +++ b/xen/include/xen/domain.h @@ -6,10 +6,6 @@ * Arch-specifics. */ -extern struct domain *arch_alloc_domain_struct(void); - -extern void arch_free_domain_struct(struct domain *d); - struct exec_domain *arch_alloc_exec_domain_struct(void); extern void arch_free_exec_domain_struct(struct exec_domain *ed); -- 2.30.2